From: Kenichi Handa Date: Mon, 24 Jun 2002 00:35:37 +0000 (+0000) Subject: (Fcall_process): If code detection is necessary, call detect_coding X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~32074 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4eb7aacda19c7a163d4c1167a54b8701bbc792dd;p=emacs.git (Fcall_process): If code detection is necessary, call detect_coding directly here. --- diff --git a/src/callproc.c b/src/callproc.c index 1a3ff6fcca9..ddc134658ca 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -787,6 +787,12 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) size = decoding_buffer_size (&process_coding, nread); decoding_buf = (char *) xmalloc (size); + if (CODING_REQUIRE_DETECTION (&process_coding)) + { + detect_coding (&process_coding, bufptr, nread); + if (process_coding.composing != COMPOSITION_DISABLED) + coding_allocate_composition_data (&process_coding, PT); + } if (process_coding.cmp_data) process_coding.cmp_data->char_offset = PT;